require("../common/common");
import adminHeader from "../components/admin/layouts/adminHeader";
import adminAside from "../components/admin/layouts/adminAside";
import adminMain from "../components/admin/layouts/adminMain";
import adminFooter from "../components/common/layouts/footer";

const admin = Vue.createApp({
    data() {
        return {
            autoHeight:{
                minHeight:""
            }
        }
    },
    methods:{
        autoSetHeight() {
            this.autoHeight.minHeight = window.innerHeight - 1 + "px";
        }
    },
    components:{
        adminHeader,
        adminAside,
        adminMain,
        adminFooter
    },
    created() {
        window.addEventListener("resize",this.autoSetHeight);
        this.autoSetHeight();
    }
});
admin.use(ElementPlus);
admin.mount("#admin")
